package com.atguigu.mybatisplus.service.impl;

import com.atguigu.mybatisplus.entiry.User;
import com.atguigu.mybatisplus.mapper.UserMapper;
import com.atguigu.mybatisplus.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName UserServiceimpl.java
 * @Description TODO
 * @createTime 2022年01月30日 16:49:00
 */
@Service
public class UserServiceimpl extends ServiceImpl<UserMapper, User> implements UserService {

//    @Resource
//    private UserMapper userMapper;


    @Override
    public List<User> listAllByName(String name) {
        // 优化
        return baseMapper.selectAllByName(name);
    }
}
